﻿#include <QtGui/QGuiApplication>
#include <QtCore/QDir>
#include <QtQuick/QQuickView>
#include <QtQml/QQmlEngine>
#include <QtGui/QFontDatabase>
#include <QDir>

int main(int argc, char *argv[])
{
    qputenv("QML_DISABLE_DISK_CACHE", "true");

    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

    QGuiApplication app(argc, argv);

    QQuickView viewer;

    viewer.setSource(QUrl("qrc:/main.qml"));

    viewer.setTitle(QStringLiteral("Qt 3D Studio Demo"));

    viewer.setResizeMode(QQuickView::SizeRootObjectToView);
    viewer.setWidth(800);
    viewer.setHeight(600);
    viewer.setColor(QColor("black"));

    viewer.show();

    return app.exec();
}
